package service.impl;

import dao.IUserDao;
import dao.impl.UserDaoImpl;
import factory.BeanFactory;
import service.IUserService;

/**
* 业务层
*/
public class UserServiceImpl implements IUserService {
   //实例化dao
//   private IUserDao userDao = new UserDaoImpl();
   IUserDao userDao = (IUserDao) BeanFactory.getBean("userDao");
   public void saveUser() {
       userDao.saveUser();
  }
}